import React from 'react'

export const themes = {
    light: {
        foreground: 'red',
        background: '#f2f2f2',
    },
    dark: {
        foreground: 'white',
        background: '#222222',
    },
}

export const ThemeContext = React.createContext(
    themes.dark // 默认值
)

export const locale = {
    cn: {
        submit: '提交',
        cancel: '取消'
    },
    en: {
        submit: 'Submit',
        cancel: 'Cancel'
    }
}

export const LocaleContext = React.createContext(
    locale.en
)